#include "Sound.h"

Sound::Sound(void):
volume(255), pan(128), pitch(1000), loop(0)
{

}

Sound::~Sound(void)
{
}

void Sound::play(bool _loop)
{
	if(!sample)
		return;
	loop = _loop;
	play_sample(sample, volume, pan, pitch, loop);
}

void Sound::loadWave(std::string filename)
{
	sample = load_sample(filename.c_str());
}

